package com.qfedu.constants;

/**
 * 概述:
 *
 * @Author: Tbh
 * @Date: 2022/6/28 15:40
 */
public enum Status {

    SUCCESS(true,"success"), FAIL(false,"fail"); //对应的对象

    Status(boolean flag, String message) {
        this.flag = flag;
        this.message = message;
    }

    private boolean flag;

    private String message;

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
